package hello;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * User: wlai
 * Date: 3/18/15
 * Time: 11:18 AM
 */
public class TryWithResourceDemo {
    public static void main(String[] args) {
         try(MyClosable mc=new MyClosable()){
             mc.doSomethingException();
         } catch (Exception e) {
             e.printStackTrace();
         }
    }
}
